package com.szl.group.utils.excel;

import java.util.List;


@FunctionalInterface
public interface MybatisPlusPageQueryService<T> {

    List<T> data(int current, int size);


    enum ExcelPageEnum {

        XLS(10_000, 60_000),
        XLSX(10_000, 1_000_000);

        private int pageSize;
        private int sheetMaxRow;

        ExcelPageEnum(int pageSize, int sheetMaxRow) {
            this.pageSize = pageSize;
            this.sheetMaxRow = sheetMaxRow;
        }

        public int getPageSize() {
            return pageSize;
        }

        public int getSheetMaxRow() {
            return sheetMaxRow;
        }
    }
}
